<?php
/**
 * Created by PhpStorm.
 * User: angl
 * Date: 2016/10/10
 * Time: 16:30
 */
namespace AuctionCore\AntNest;

class Subscribe extends Client
{
    public function __construct()
    {
        $this->urlPath = 'auctionsub/api/order/';
    }

    /**
     * 添加订阅
     * @param $account_id
     * @param $order_id
     * @param int $sub_type
     * @return mixed
     */
    public function add($account_id, $order_id, $sub_type = 1)
    {
        $this->urlPath = $this->urlPath . "add";
        $this->return_data = false;
        $this->params = [
            'account_id' => $account_id,
            'order_id' => $order_id,
            'sub_type' => $sub_type
        ];
        return $this->send();
    }
}